﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using Microsoft.Practices.Unity;
using System.Web.ModelBinding;
using ddcCajamarca.BusinessEntities.Directorio;
using ddcCajamarca.BusinessLogic.Directorio.Service;

namespace ddcCajamarca.Web.Directorio
{
    public partial class frmListActividades : System.Web.UI.Page
    {
        [Dependency]
        public IActividadBL actividadBL { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {

        }

        public IEnumerable<Actividad> GetActividades([Control("txtCriterio")]string criterio)
        {
            return actividadBL.GetActividadesByCriterio(criterio);
        }
    }
}